<script type="text/html" template>
    <link rel="stylesheet" href="{{ layui.setter.base }}start/layui/css/layui.css">
    <link rel="stylesheet" href="{{ layui.setter.base }}style/css/reset.css">
    <link rel="stylesheet" href="{{ layui.setter.base }}style/css/home/alert-one.css">
    <script src="{{ layui.setter.base }}/start/layui/layui.all.js"></script>
</script>
    <div class="box">
        <div class="title">编辑</div>
        <div class="con">
            <div id="test1"></div>
        </div>
        <div class="footer layui-btn-container">
            <button class="btn1 layui-btn layui-btn-radius layui-btn-primary">确定</button>
            <button class="btn2 layui-btn layui-btn-radius layui-btn-primary">取消</button>
        </div>
    </div>
    <script>
        ! function() {
            var form = layui.form,
                layer = layui.layer,
                $ = layui.$,
                admin = layui.admin,
                view = layui.view,
                api = layui.api,
                table = layui.table,
                setter = layui.setter,
                laytpl = layui.laytpl,
                utill = layui.utill,
                form = layui.form,
                element = layui.element;
            layui.use('tree', function() {
                var tree = layui.tree;
                var inst1 = tree.render({
                    elem: '#test1' //绑定元素
                        ,
                    data: [{
                        title: '江西' //一级菜单
                            ,
                        children: [{
                            title: '南昌' //二级菜单
                                ,
                            children: [{
                                title: '高新区' //三级菜单
                                    //…… //以此类推，可无限层级
                            }]
                        }]
                    }, {
                        title: '陕西' //一级菜单
                            ,
                        children: [{
                            title: '西安' //二级菜单
                        }]
                    }]
                });
            });
        }();
    </script>